import request from "@/apis/request.js";
import url from "@/apis/urlconst.js";

export const create_say = (data) => {
    return request({
        url: url.v1.createSay_url.url,
        method: url.v1.createSay_url.method,
        data,
    });
};

export const say_comment = (data) => {
    return request({
        url: url.v1.sayComment_url.url,
        method: url.v1.sayComment_url.method,
        data,
    });
};

export const say_like = (id) => {
    return request({
        url: url.v1.sayLike_url.url + id,
        method: url.v1.sayLike_url.method,
    });
}

export const list_say = () => {
    return request({
        url: url.v1.getSayList_url.url,
        method: url.v1.getSayList_url.method,
    });
}